<?php

/**
 * SearchForm class.
 * SearchForm is the data structure for keeping
 * user search form data. It is used by the 'search' action of 'ReportController'.
 */
class ProductSearchForm extends CFormModel
{
	public $product_code;
	public $product_name;
	public $producttype_code;


	/**
	 * Declares the validation rules.
	 * The rules state that username and password are required,
	 * and password needs to be authenticated.
	 */
	public function rules()
	{
		return array(
			//array('start_date, end_date', 'required'),
			array('product_code, product_name, producttype_code', 'safe'),
		);
	}

	/**
	 * Declares attribute labels.
	 */
	public function attributeLabels()
	{
		return array(
			'product_code'=>'商品编码',
			'product_name'=>'商品名称',
			'producttype_code'=>'商品类型',
		);
	}
}
